Version

SortMergeGeneric<T>(T[],IComparer<T>) Method

Sorts the passed in array based on the passed in comparer using a modified merge-sort algorithm. It requires allocation of an array equal in size to the array to be sorted. Merge sort should be used if the operation of comparing items is expensive.
Syntax
'Declaration
 
Public Overloads Shared Sub SortMergeGeneric(Of T)( _
   ByVal array() As T, _
   ByVal comparer As IComparer(Of T) _
) 
public static void SortMergeGeneric<T>( 
   T[] array,
   IComparer<T> comparer
)

Parameters

array
The array to be sorted
comparer
The comparer to use for the sort

Type Parameters

T
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also